<template>
  <div>
    <MyContent v-if="getMy"></MyContent>
    <MyContentNoToken v-else></MyContentNoToken>
  </div>
</template>

<script>
import MyContent from '@/components/My'
import MyContentNoToken from '@/components/MyNoToken'
import { getToken } from '@/utils/storage'
export default {
  components: {
    MyContent,
    MyContentNoToken
  },
  props: {},
  data() {
    return {}
  },
  computed: {
    getMy() {
      if (getToken()) {
        return true
      } else {
        return false
      }
    }
  },
  watch: {},
  created() {},
  methods: {}
}
</script>

<style scoped></style>
